home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000374_gandhishruti@gmail.com_Wed Sep 1 08:59:27 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!newsfeed1.nycmny01.us.to.verio.net!newspeer1.stngva01.us.to.verio.net!verio!newspeer1.nwr.nac.net!news.maxwell.syr.edu!postnews2.google.com!not-for-mail
  2. From: gandhishruti@gmail.com (Shruti)
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Checking for
  5. Date: 31 Aug 2004 14:45:57 -0700
  6. Organization: http://groups.google.com
  7. Lines: 43
  8. Message-ID: <689dd88f.0408311345.474a3235@posting.google.com>
  9. NNTP-Posting-Host: 63.76.214.3
  10. Content-Type: text/plain; charset=ISO-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-Trace: posting.google.com 1093988758 28266 127.0.0.1 (31 Aug 2004 21:45:58 GMT)
  13. X-Complaints-To: groups-abuse@google.com
  14. NNTP-Posting-Date: Tue, 31 Aug 2004 21:45:58 +0000 (UTC)
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15139
  16.  
  17. Hi All,
  18.  
  19. I am getting files from a unix server to my machine running win2k
  20. using modem dial out. My script is working fine except one small
  21. thing. When I change the directory to where the files are supposed to
  22. be, i want to check if the directory exists. If it does not then I
  23. want to exit.
  24. 1. The "If Directory" command checks for the existence of the
  25. directory on the
  26.    local machine not on the remote server. So that did not work.
  27. 2. I also tried "remote query" method to get the pwd, but it shows as
  28. being
  29.    unimplemented.
  30. 3. "If fail" command also did not help. 
  31.  
  32. I tried a few more things but nothing seems to be working. Below is
  33. part of my script. After I do cd I want to check.
  34.  
  35. If any body has any ideas, please help.
  36.  
  37. Regards,
  38. Shruti.
  39.  
  40. ************************************************************************
  41. output cd /mydirectory
  42. ;remote cd /mydirectory
  43. xif fail {
  44.     set exit status 7
  45.     fopen /write \%c \m(logfile)            
  46.     if fail exit
  47.     fwrite /line \%c \%d
  48.     if fail exit
  49.      fclose \%c
  50.     if fail exit
  51.      clear device
  52.     exit
  53. }
  54.  
  55. output kermit\13                  ; initialize kermit on host
  56.  
  57. output send *.txt\13                  ; get files
  58. receive        
  59. ***************************************************************************